import request from '@/utils/request'

// 封装一个加载文章列表的接口
export const articleList = (params) => {

    return request({
        url: '/v1_0/articles',
        params
    })
}
// 文章详情接口
export const article_info = (article_id) => {

    return request({
        url: "/v1_0/articles/" + article_id,
    })
}

// 获取评论
export const getArticle = (source) => {

    return request({
        url: "/v1_0/comments",
        params: {
            type: "a",
            source,
        }
    })
}